﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.PCRBW.Dao;

partial class Db : K8.EF.DbContext
{
    /// <summary>
    ///MES出库完成，更新Orcal数据库
    /// </summary>
    public DbSet<MesOutComplete> MesOutCompletes { get; set; }
}

/// <summary>
/// MES出库完成，更新Orcal数据库
/// </summary>
[Table("mes_out")]
public class MesOutComplete
{
    /// <summary>
    /// 主键
    /// </summary>
    [Key]
    [Column("out_id")]
    public string Id { get; set; }
    /// <summary>
    /// 单号
    /// </summary>
    [Column("list_no")]
    public string ListNo { get; set; }
    /// <summary>
    /// 物料编码
    /// </summary>
    [Column("part_number")]
    public string PartNumber { get; set; }
    /// <summary>
    /// 2.批次号码
    /// </summary>
    [Column("batch_name")]
    public string BatchName { get; set; }
    /// <summary>
    /// 目标站台
    /// </summary>
    [Column("eloc_no")]
    public string ElocNo { get; set; }
    /// <summary>
    /// RFID工装号码
    /// </summary>
    [Column("rfid_no")]
    public string RfidNo { get; set; }
    /// <summary>
    /// 创建时间
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 创建人
    /// </summary>
    [Column("create_user")]
    public string CreateUser { get; set; }
    /// <summary>
    /// 更新时间
    /// </summary>
    [Column("last_modfied_time")]
    public DateTime? last_modfied_time { get; set; }
    /// <summary>
    /// 更新人员
    /// </summary>
    [Column("last_modfied_user")]
    public string last_modfied_user { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    [Column("remarks")]
    public string remarks { get; set; }
    /// <summary>
    /// 更新标志 1:新增  2:删除 0;复位
    /// </summary>
    [Column("update_flag")]
    public int? update_flag { get; set; }
    /// <summary>
    /// 发往区域名称，需求指令自动发料为空，手动发料不为空
    /// </summary>
    [Column("area_name")]
    public string area_name { get; set; }
    /// <summary>
    /// 仓库号
    /// </summary>
    [Column("storage_no")]
    public string storage_no { get; set; }
    /// <summary>
    /// 出库机台
    /// </summary>
    [Column("target_equip")]
    public string target_equip { get; set; }
    /// <summary>
    /// 出库打印交互标志 默认为0；WMS更新 OUT_FLAG 值为1，MES 打印卡片完成后 更新为2
    /// </summary>
    [Column("out_flag")]
    public int? out_flag { get; set; }
    /// <summary>
    /// 打印卡片时间
    /// </summary>
    [Column("print_time")]
    public DateTime? print_time { get; set; }
    /// <summary>
    /// 出库完成时间
    /// </summary>
    [Column("out_time")]
    public DateTime? out_time { get; set; }
    /// <summary>
    /// 物料描述
    /// </summary>
    [Column("part_desc")]
    public string part_desc { get; set; }
    /// <summary>
    /// 请求单完成情况0完成1取消
    /// </summary>
    [Column("list_status")]
    public string list_status { get; set; }
    /// <summary>
    /// Batch-0  Lot-1
    /// </summary>
    [Column("data_type")]
    public string data_type { get; set; }
    /// <summary>
    /// 重量或数量
    /// </summary>
    [Column("out_quantity")]
    public decimal? quantity { get; set; }
    /// <summary>
    /// 订单完成类型：0自动完成、1人工完成、2人工取消
    /// </summary>
    [Column("complete_type")]
    public string? complete_type { get; set; }
    /// <summary>
    /// 尺寸
    /// </summary>
    [Column("in_size")]
    public int? InSize { get; set; }
}

